#!/bin/sh

PLUGIN_HOME=/usr/local/nagios/libexec
CHECK_IBM_JAR=$(ls $PLUGIN_HOME/checkibm*.jar)
DB2JCC_JAR=/opt/IBM/db2/V9.5/java/db2jcc.jar
JAVA_HOME=/opt/IBM/WebSphere/AppServer/java
JAVA=$JAVA_HOME/bin/java
EXEC="$JAVA -cp $CHECK_IBM_JAR:$DB2JCC_JAR  com.google.code.checkibm.Main $*"
#echo $EXEC
$EXEC 2>/dev/null
~                     
